#!/bin/bash


listfile=$1

if [ $# -ne 1   ]
then
	echo "usage[xfindgalaxy_auto.sh listforgalaxy]"
	exit 0
fi

for fitfile in `cat $listfile`
do
	echo $fitfile
	gladefile=`echo $fitfile | sed 's/\.fit/.glade/g'`
	xfindgalaxy.sh $fitfile $gladefile
	wait
done

